package com.hex.ds.hdtp.core.app.data.contrast.service;

import com.hex.ds.hdtp.core.app.common.service.IBasicService;
import com.hex.ds.hdtp.core.app.data.contrast.dto.request.CrossDbContrastRunLogRequestDto;
import com.hex.ds.hdtp.core.app.data.contrast.dto.response.CrossDbContrastRunLogResponseDto;

import java.util.List;

/**
 * @Package: com.hex.ds.hdtp.core.app.data.contrast.service
 * @ClassName ICrossDbContrastRunLogService
 * @Description: 跨库比对记录-业务接口
 * @Author: wz.li
 * @Date 2023/7/28 17:56
 * @Version v2.0.2
 **/
public interface ICrossDbContrastRunLogService extends IBasicService<CrossDbContrastRunLogRequestDto> {

    List<CrossDbContrastRunLogResponseDto> queryByTaskIdStatus(String taskPkId, String status);

    /**
     * @Method addWithBackPkId
     * @Param
     * @param crossDbContrastRunLogRequestDto
     * @Return java.lang.String
     * @Description 添加一条执行记录并返回pkId
     * @Author Wang zhihao
     * @Date 2023/8/1 10:12
     * @Version V1.0
     */
    String addWithBackPkId(CrossDbContrastRunLogRequestDto crossDbContrastRunLogRequestDto);

    /**
     * @Method modifySuccessNum
     * @Param
     * @param pkId
     * @Return void
     * @Description 更新成功数量
     * @Author Wang zhihao
     * @Date 2023/8/1 10:13
     * @Version V1.0
     */
    void modifySuccessNum(String pkId);

    /**
     * @Method modifyFailNum
     * @Param
     * @param pkId
     * @Return void
     * @Description 更新失败数量
     * @Author Wang zhihao
     * @Date 2023/8/1 10:13
     * @Version V1.0
     */
    void modifyFailNum(String pkId);

    /**
     * 停止比对任务
     *
     * @param pkId
     */
    void modifyStopTask(String pkId);
    /*
     * @param pkId:
     * @return String
     * @author Liang Fuhao
     * @description 根据id查状态
     * @date 2024/1/15 11:03
     */
    String queryStatusByPkId(String pkId);
}
